package com.yzt.zhuju.dialog;

import android.view.View;
import android.widget.TextView;

import com.yzt.zhuju.R;

/**
 * author : bob
 * date   : 2023/2/23
 * desc   :钻石奖励
 */
public class DiamondRewardDialog extends CenterBaseDialog {

    @Override
    public int getLayoutRes() {
        return R.layout.dialog_diamond_reward;
    }

    @Override
    public void bindView(View v) {

        String diamond = getArguments().getString("extra_diamond");

        TextView card = findViewById(R.id.tv_number);
        card.setText("x " + diamond);

        findViewById(R.id.awesome).setOnClickListener(view -> dismissAllowingStateLoss());
    }
}
